package com.lantosec.hmrp.modules.system.entity;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.system.vo.RegionalHeadVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegionalHead extends BaseEntity<RegionalHeadVO> {

    @Override
    public RegionalHeadVO convertToVO() {
        return new RegionalHeadVO(this);
    }
    public RegionalHead(RegionalHeadVO vo){
        this.areaName = vo.getAreaName();
        this.userName = vo.getUserName();
        this.userId = vo.getUserId();
        this.areaId = vo.getAreaId();
        this.deptId = vo.getDeptId();
        this.deptName = vo.getDeptName();
        this.flag = vo.getFlag();
    }

    private String areaName;

    private String userName;

    private String areaId;

    private String userId;

    private String deptId;

    private String deptName;

    //全部标识
    private String flag;

}
